<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    .box{
      border: 1px solid gray;
      width: 1300px;
      background-repeat: 0 20px 0 20px;
      padding: 15ox;
      margin: auto;
      color: gray;
    }

    .box p span{
      color: blue;
    }

    .box2{
      margin-top: 20px;
    }

    .box2 span{
    margin-right: 100px;
    }
  </style>
</head>
<body>
  <div calss="box">
    <span>小米</span>


  </div>
  <script>

    // let person ={ 
    //   uname: 'pink老师',
    //   age: 18,
    //   gender: '女'
    // }
    // console.log(person.age)
    // person.gender = '男'
    // person.addresss = '武汉黑马'


    let x = {
      goods:'小米(MI)',
      name:'小米10青春版',
      num: '100012816024',
      weight: '0.55kg',
      adderss: '中国大陆'
    }
    x.name = '小米10 PULS'
    x.color = '粉色'

    // console.log(x.name)
    console.log(x.num)
    console.log(x.weight)
    console.log(x.adderss)
    console.log(x.color)
    console.log(x.goods)


    document.write(`
    <div class="box">
    <p>品牌：<span>${x.goods}</span></p>
    <div class="box2">
      <span>商品名称：${x.name}</span>
      <span>商品编号：${x.num}</span>
      <span>商品毛重：${x.weight}</span>
      <span>商品产地：${x.adderss}</span>
      <span>商品颜色：${x.color}</span>
    </div>
  </div>
    `)

    

  </script>
</body>
</html>